--[[

        hero.lua
        exported by excel2lua.py
        from file:hero.xlsx

--]]

local _data = {
  [1] = {id = 1,res_id = 'cheyongtai',skill_id_1 = 2,skill_id_2 = 4,skill_id_3 = 6,skill_normal = 7,attribute = 1,name = '牛大',element = 0,lvId = 1,desc = '暂无内容',lv_max = 50,effectId = '1|2',effect_unlock = '30|60',race = 1,sex = 1,},
  [2] = {id = 2,res_id = 'cheyongtaiar',skill_id_1 = 3,skill_id_2 = 4,skill_id_3 = 5,skill_normal = 7,attribute = 2,name = '牛二',element = 1,lvId = 1,desc = '暂无内容',lv_max = 50,effectId = '1|2',effect_unlock = '30|60',race = 3,sex = 1,},
  [3] = {id = 3,res_id = 'cheyongtaisui',skill_id_1 = 2,skill_id_2 = 5,skill_id_3 = 3,skill_normal = 7,attribute = 3,name = '牛三',element = 1,lvId = 1,desc = '暂无内容',lv_max = 50,effectId = '1|2',effect_unlock = '30|60',race = 1,sex = 1,},
  [4] = {id = 4,res_id = 'guxiaohua',skill_id_1 = 1,skill_id_2 = 3,skill_id_3 = 2,skill_normal = 7,attribute = 4,name = '顾采薇',element = 0,lvId = 1,desc = '暂无内容',lv_max = 50,effectId = '1|2',effect_unlock = '30|60',race = 2,sex = 2,},
  [5] = {id = 5,res_id = 'guxiaohuagl',skill_id_1 = 2,skill_id_2 = 4,skill_id_3 = 3,skill_normal = 7,attribute = 5,name = '顾蒹葭',element = 2,lvId = 1,desc = '暂无内容',lv_max = 50,effectId = '1|2',effect_unlock = '30|60',race = 4,sex = 2,},
  [6] = {id = 6,res_id = 'hongjie',skill_id_1 = 6,skill_id_2 = 5,skill_id_3 = 4,skill_normal = 7,attribute = 6,name = '李道清',element = 2,lvId = 1,desc = '暂无内容',lv_max = 50,effectId = '1|2',effect_unlock = '30|60',race = 2,sex = 2,},
  [7] = {id = 7,res_id = 'huangxiao',skill_id_1 = 2,skill_id_2 = 6,skill_id_3 = 4,skill_normal = 7,attribute = 7,name = '花小小',element = 3,lvId = 1,desc = '暂无内容',lv_max = 50,effectId = '1|2',effect_unlock = '30|60',race = 3,sex = 1,},
  [8] = {id = 8,res_id = 'mingyue',skill_id_1 = 5,skill_id_2 = 4,skill_id_3 = 3,skill_normal = 7,attribute = 6,name = '道明月',element = 3,lvId = 1,desc = '暂无内容',lv_max = 50,effectId = '1|2',effect_unlock = '30|60',race = 1,sex = 1,},
  [9] = {id = 9,res_id = 'missyan',skill_id_1 = 2,skill_id_2 = 1,skill_id_3 = 3,skill_normal = 7,attribute = 6,name = '杨魅心',element = 1,lvId = 1,desc = '暂无内容',lv_max = 50,effectId = '1|2',effect_unlock = '30|60',race = 4,sex = 1,},
  [10] = {id = 10,res_id = 'missyanqing',skill_id_1 = 6,skill_id_2 = 5,skill_id_3 = 8,skill_normal = 7,attribute = 4,name = '杨红烈',element = 1,lvId = 1,desc = '暂无内容',lv_max = 50,effectId = '1|2',effect_unlock = '30|60',race = 3,sex = 2,},
  [11] = {id = 11,res_id = 'qingfeng',skill_id_1 = 2,skill_id_2 = 4,skill_id_3 = 6,skill_normal = 8,attribute = 6,name = '李清风',element = 2,lvId = 1,desc = '暂无内容',lv_max = 50,effectId = '1|2',effect_unlock = '30|60',race = 2,sex = 1,},
  [12] = {id = 12,res_id = 'tianranfei',skill_id_1 = 2,skill_id_2 = 3,skill_id_3 = 15,skill_normal = 8,attribute = 6,name = '天紫发',element = 2,lvId = 1,desc = '暂无内容',lv_max = 50,effectId = '1|2',effect_unlock = '30|60',race = 1,sex = 1,},
  [13] = {id = 13,res_id = 'ximenrage',skill_id_1 = 5,skill_id_2 = 4,skill_id_3 = 14,skill_normal = 8,attribute = 3,name = '魔化西蒙',element = 3,lvId = 1,desc = '暂无内容',lv_max = 50,effectId = '1|2',effect_unlock = '30|60',race = 3,sex = 2,},
  [14] = {id = 14,res_id = 'xishadark',skill_id_1 = 4,skill_id_2 = 2,skill_id_3 = 3,skill_normal = 8,attribute = 4,name = '牛小妹',element = 3,lvId = 1,desc = '暂无内容',lv_max = 50,effectId = '1|2',effect_unlock = '30|60',race = 2,sex = 1,},
  [15] = {id = 15,res_id = 'yeyan',skill_id_1 = 4,skill_id_2 = 3,skill_id_3 = 1,skill_normal = 8,attribute = 6,name = '叶阳',element = 0,lvId = 1,desc = '暂无内容',lv_max = 50,effectId = '1|2',effect_unlock = '30|60',race = 4,sex = 1,},
  [16] = {id = 16,res_id = 'yeyanmogu',skill_id_1 = 5,skill_id_2 = 20,skill_id_3 = 4,skill_normal = 8,attribute = 5,name = '叶菇',element = 0,lvId = 1,desc = '暂无内容',lv_max = 50,effectId = '1|2',effect_unlock = '30|60',race = 1,sex = 2,},
}

local id_to_index={
   [1] = 1,
   [2] = 2,
   [3] = 3,
   [4] = 4,
   [5] = 5,
   [6] = 6,
   [7] = 7,
   [8] = 8,
   [9] = 9,
   [10] = 10,
   [11] = 11,
   [12] = 12,
   [13] = 13,
   [14] = 14,
   [15] = 15,
   [16] = 16,
}

local hero={}

function hero.length() 
   return #_data 
end 

function hero.indexOf(index) 
   return _data[index] 
end 

function hero.get(id) 
  return hero.indexOf(id_to_index[id])
end 

return hero